//
//  InformationLayer.cpp
//  Seek&Hide
//
//  Created by 齐思 陈 on 13-10-5.
//
//

#include "InformationLayer.h"
#include "MiniMapLayer.h"

F_SYNTHESIZE_IMPLEMENT(MiniMapLayer*, m_pMiniMapLayer, MiniMapLayer, InformationLayer);

InformationLayer::InformationLayer() : m_pMiniMapLayer(NULL) {
}

InformationLayer::~InformationLayer() {
    
    CC_SAFE_RELEASE(m_pMiniMapLayer);
}

InformationLayer* InformationLayer::create() {
	InformationLayer* pRet = new InformationLayer();
	pRet->init();
	pRet->autorelease();
	return pRet;
}

bool InformationLayer::init() {

	if ( !CCLayer::init() ) {
		 return false;
	}

    CCSize winSize = CCDirector::sharedDirector()->getWinSize();
    
    setMiniMapLayer(MiniMapLayer::create());
    getMiniMapLayer()->setAnchorPoint(ccp(0, 1));
    getMiniMapLayer()->setPosition(ccp(0,winSize.height));
    addChild(getMiniMapLayer());
    
	return true;
}

